import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
//state仓库存储数据
//引入小仓库
import Home from './home';
import Search from './search';
import detail from "./detail";
import shopcart from "./shopcart";
import user from "./user";
import trade from "./trade";
//对外暴露Store的一个实例
export default new Vuex.Store({
    modules:{
        Home,
        Search,
        detail,
        shopcart,
        user,
        trade
    }
})